<?php
session_start();
if(session_destroy())
{
echo '
<script type="text/javascript">
    location.href="index.php";
</script> ';
}
?>
